//
//  SJNavigationBar.h
//  WSL
//
//  Created by CJ on 2017/10/26.
//  Copyright © 2017年 sanjuetech. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SJCustomLayout.h"
#import "SJNavItemModel.h"

@class SJNavigationBar;
@interface SJNavItemCell : UICollectionViewCell

@property (nonatomic, strong) SJNavItemModel *item;
@property (nonatomic, strong) UIImageView *itemImageView;

@end

@protocol SJNavigationBarDelegate <NSObject>
- (void)navigationBar:(SJNavigationBar *)navigationBar didSelectItemAtIndexPath:(NSIndexPath *)indexPath;
@end

@interface SJNavigationBar : UIView  <UICollectionViewDataSource, UICollectionViewDelegate, SJCustomLayoutDelegate>

@property (strong, nonatomic) SJCustomLayout *customLayout;
@property (nonatomic, strong) UICollectionView *collectionView;
@property (nonatomic, strong) NSMutableArray *dataArray;
@property(nonatomic, weak) id<SJNavigationBarDelegate> delegate;

@end
